package com.cjw.campus.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 教师表
 * </p>
 *
 * @author cjw
 * @since 2023-02-28
 */
@Getter
@Setter
@TableName("teacher_table")
@Schema(name = "TeacherTable", description = "$!{table.comment}")
public class TeacherTable implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "教师ID")
    @TableId(value = "teacher_id", type = IdType.AUTO)
    private Long teacherId;

    @Schema(description = "教师姓名")
    private String teacherName;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "学科id")
    private Long subjectId;

    @Schema(description = "手机号码")
    private Long phone;

    @Schema(description = "性别")
    private Integer sex;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createor;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Schema(description = "更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updater;

    @Schema(description = "删除标志")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Boolean deleteFlag;
}
